package com.xmb.common.interceptor;


import com.xmb.common.entity.structure.CurrentUser;

/**
 * 当前线程的用户
 */
public class CurrentContextUser {

    private static ThreadLocal<CurrentUser> currentMemberUserInfo = new ThreadLocal<>();

    public static void set(CurrentUser user){
        currentMemberUserInfo.set(user);
    }

    public static CurrentUser get(){
        return currentMemberUserInfo.get();
    }

}
